html {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: env(safe-area-inset-top, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    background: #000000;
}



header {
    margin-top: 0;
    display: flex;
    justify-content: space-between;

    padding: 1em;
}



h1 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    font-style: normal;
    font-weight: lighter;
    color: #ffffff;
}

.work-name {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: .9rem;
    font-style: italic;
    font-weight: lighter;
    color: #ffffff;
}

.work-title {
    color: white;
    text-align: center;
    font-size: 2rem;
    font-family: 'gruppo';
    padding: 50px 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

.home-text-wrapper {
    margin-top: 1em;
    margin-left: .5em;
}

/*removes link underline for all links*/
a,
a:visited,
a:hover,
a:active {
    text-decoration: none;

}


nav ul {

    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    height: 100vh;
    margin: 0;
    list-style: none;
    width: 40%;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 2em;
    transform: translate(100%);
    transition: transform 0.5s ease-in-out;

    li {
        margin: 2em 0;

        &:nth-of-type(1) {
            margin-bottom: 2em;
        }

        a {
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 1.2rem;

            &:hover {
                color: #ffc72b;
            }
        }
    }
}


.open {
    transform: translateX(0%);
    background-color: rgba(0, 0, 0, 0.9);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 4;
}


.menu-toggle {
    display: block;
    position: absolute;
    top: 1.5em;
    right: 1.5em;

}

/*close menu button*/
@media (min-width:1025px) {


    .hide-desktop {
        display: none;
    }

    .hide-mobile {
        display: block;
    }
}




.project-video-container {
    position: relative;
    width: 100%;
    height: auto;
    /* Adjust as needed */
    max-height: 80vh;
    overflow: hidden;
    /* Ensures anything overflowed is hidden */
    z-index: 2;
}

/*reel video thumbnail*/
.video-container {
    position: relative;
    width: 100%;
    /* Adjust as needed */
    max-height: 80vh;
    overflow: hidden;
    /* Ensures anything overflowed is hidden */
    z-index: 2;
    aspect-ratio: 16/9;

}

.youtube-container {
    max-width: 960px;
    height: 600px;
    padding-top: 20px;
    margin: 0 auto;

}

#background-video {

    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the entire area */
}



/* Full video overlay */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    /* Start as invisible */
    transition: opacity 0.3s ease;
    /* Smooth transition */
    z-index: 1;
}

/* Show overlay on hover */
.video-container:hover::before {
    opacity: 1;
    /* Make overlay visible */
}


.portfolio {
    padding: 20px;
    align-items: center;
}



.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;

}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}



.gallery-item:hover img {
    transform: scale(1.05);
}

/* Always visible overlay */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    /* so clicks pass through */
    z-index: 2;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.project-title {
    color: white;
    font-size: 1.5rem;
    font-family: "Poppins";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.project-name {
    color: #ffffff;
    font-size: 2rem;
    font-family: "Poppins";
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*margin: 0 auto;*/
    padding-top: .5em;
    margin-top: 2.5em;
    text-transform: uppercase;
}

.project-description {
    color: #ffffff;
    font-size: 2.5rem;
    font-family: 'Montserrat';
    font-weight: lighter;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding-top: .5em;
}

/*Coming Soon poster*/
/* Coming Soon Section */
.coming-soon-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    /* Adjust margin for spacing */
}

.coming-soon-content {
    position: relative;
    width: 800px;
    /* Larger size for more prominence */
    max-width: 90%;
    transition: transform 0.3s ease-in-out;
}

.coming-soon-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    /* Optional: rounded corners */
}

.coming-soon-content:hover {
    transform: scale(1.05);
    /* Slight enlargement on hover */
}

.coming-soon-content .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    /* Darker overlay for emphasis */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.coming-soon-content:hover .overlay {
    opacity: 1;
    /* Show the overlay text on hover */
}

.coming-soon-content .project-title {
    color: white;
    font-family: 'gruppo';
    font-size: 4rem;
    /* Larger font size for better visibility */
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    /* Slight shadow for better contrast */
}

/* Modal styles */

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw;
    /* Full width */
    height: 100vh;
    /* Full height */
    overflow: hidden;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black background with opacity */
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    /* Center items vertically */
    transition: 0.3s;
    /* Smooth transition for opening */
    object-fit: contain;


}

.modal img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}




/*media query for portfolio gallery*/
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 20px);
    }

}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 calc(100% - 20px);
    }
}


/* Adjust gallery item size for larger screens */
@media (min-width: 1024px) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Exactly 2 columns */
        gap: 3rem;
        max-width: 1500px;
        /* adjust spacing as needed */
        width: 100%;
        margin: 0 auto;
        /* Horizontally centers the gallery */
        padding: 1rem;
        /* Optional: adds breathing space */
        box-sizing: border-box;
        /* Ensures padding doesn’t break the layout */
    }

}


/*video background*/


.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#grainCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    /* Sends the canvas behind other content */
    pointer-events: none;
    object-fit: cover;
    /* Prevents it from blocking any interactions */
    background-color: #000000;
}





footer {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 10px 0;

    bottom: 0;
    width: 100%;
    margin-top: 10rem;
    padding-bottom: 20px;
}

.email {
    font-size: 20px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
    user-select: none;
}

.email-wrapper {
    display: flex;
    justify-content: center;
}

.contact-links {
    text-decoration: none;
}

.contact-link-logos {
    display: flex;
    flex-direction: column;
    padding-left: 8px;
    list-style: none;
    font-size: 2.5rem;

}

.link-logos {
    display: flex;
    justify-content: left;
    justify-content: space-evenly;
    list-style: none;
    font-size: 2.5rem;
}

.contact {
    color: #fff;
    padding-left: 1em;
    background-color: rgba(0, 0, 0, 0.5);
    margin-top: 2em;
    padding-top: 30px;
    padding-bottom: 30px;
}


@media (min-width:1025px) {


    .hide-desktop {
        display: none;
    }

    .hide-mobile {
        display: block;
    }

    header-left {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1em;

        .divider {
            height: 50px;
            width: 1px;
            border-right: 1px solid #fff;

        }


    }


    nav ul {
        position: unset;
        display: flex;
        gap: 2em;
        height: auto;
        width: auto;
        transform: translateX(0%);

        li a {
            font-size: 1.2rem;
        }
    }

    .video-container {
        padding-top: 2em;
        padding-bottom: 20px;
    }


}

/*Project videos*/
.video-container {
    position: relative;
    height: 600px;

}

@media(min-width: 750px) {
    .yt-vid {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        padding-top: 0;
    }
}

.yt-vid {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 600px;
    padding-top: 0;
    margin: 0;
}



@keyframes moveArrow {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes moveDown {
    from {
        transform: translateY(-100px);
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}




iframe {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 600px;
    padding-top: 0;
    margin: 0;

}

@media(min-width: 750px) {
    iframe {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        padding-top: 0;
    }
}



/*portfolio button*/
.button-port {

    padding-bottom: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 10vh;

}

.port-button {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 2.5em;
    letter-spacing: 0.1em;
    font-weight: 400;
    padding: 10px 30px;
    transition: 0.5s;
    font-family: 'Amatic SC';
    box-sizing: border-box;
    border-radius: 40px;
}

.port-button:hover {
    background: var(--clr);
    letter-spacing: .25em;
    box-shadow: 0 0 35px var(--clr);
    background: rgba(0, 0, 0, 0.9);
}

/*vcr test*/
@keyframes vcrEffect {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.vcr-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 2px,
            transparent 2px,
            transparent 4px);
    animation: vcrEffect 0.2s infinite linear;
    opacity: 0.2;
}

/* Container for the group of still images */
.still-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* Responsive grid */
    gap: 15px;
    /* Adds space between the images */
    justify-content: center;
    /* Centers the grid */
    margin-top: 20px;
    /* Adds space between the video and the images */
    padding: 0 20px;
    /* Optional: Adds padding on the sides */

}

.still-image-item {
    position: relative;
    overflow: hidden;

    /* Optional: Adds rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Adds a shadow for visual depth */
}

.still-image-item img {
    width: 60%;
    /* Ensures the image fills the container */
    height: auto;
    /* Keeps the image aspect ratio */

}


@media(min-width: 750px) {
    .still-images-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        /* Larger images for bigger screens */
    }
}

.still-images-container {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    /* Center images */
}

.still-image-item {
    margin: 10px 0;
    /* Space between images */
}

.enlarge-btn {
    border: none;
    /* Remove button border */
    background: none;
    /* Remove button background */
    cursor: pointer;
    /* Change cursor to pointer */
}






.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Existing styles here... */

@media (max-width: 1025px) {
    footer {
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        text-align: center;
        padding: 10px 0;
        position: relative;
        bottom: 0;
        width: 100%;
        margin-top: 10rem;
        padding-bottom: 20px;
    }
}

@media (min-width: 1025px) {
    footer {
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        text-align: center;
        padding: 10px 0;
        position: relative;
        bottom: 0;
        width: 100%;
        margin-top: 10rem;
        padding-bottom: 20px;
    }
}